home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix
- Subject: Re: File descriptor equivalent of fflush?
- Date: 29 Jan 1996 12:58:54 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4ejceeINN5v3@keats.ugrad.cs.ubc.ca>
- References: <DLxHsx.7Ko@un.seqeb.gov.au>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <DLxHsx.7Ko@un.seqeb.gov.au>,
- Anthony Lee <al012@svtstu.seqeb.gov.au> wrote:
- >Dear all,
- >
- >I am trying to find an equivalent of fflush for file descriptors
- >in ULTRIX and OSF.
-
- All you can do is open the file with the O_SYNC flag. If the underlying file
- system supports it, the write() calls will exit only when the blocks affected
- by write() have been committed to disk.
-
- You can also call fsync() on the file descriptor, which will cause all the
- unwritten cache blocks belonging to that file to be queued for writing, though
- I'm not sure whether fsync() will wait for the writing to take place.
-
- >--
- >Anthony Lee These are my opinions and not SEQEB.
- >SEQEB
- >150 Charlotte Street ..-- __o
- >Brisbane ....-- _ \<,_
- >Qld 4000 ____ (_)/ (_)
- >Australia
- >voice:+61 7 3407 4541 Death to the Daleks!!!!
- >fax: +61 7 3407 4607
- >email: AL012@svtstu.seqeb.gov.au
- >
-
-
- --
-
-